
import { _decorator, Component, Node, Mesh, utils, Material } from 'cc';
import { BaseTransform } from './BaseTransform';
import GameData from '../../Script/Common/GameData';
import { GlobalEnum } from '../../Script/GameSpecial/GlobalEnum';
import GameConfig from '../../Script/GameSpecial/GameConfig';
const { ccclass, property } = _decorator;

@ccclass('ChangeCarQuad')
export class ChangeCarQuad extends BaseTransform {

    protected setData(data: { z: number }) {
        this.node.setPosition(0, -3, data.z);
        this.minZ = data.z - 1;
        this.maxZ = data.z - 1;
    }

    checkColl() {
        return true;
    }

    onColl(role) {
        // if (role.isPlayer) {
        //     this.node.active = false;
        // }
    }

    public cars: number[] = [1, 2];

}

